/*
 *  cocoa/graphic2D.h
 *  mini
 *
 *  Created by jin on 1/1/11.
 *  Copyright 2011 cs. All rights reserved.
 *
 */

#ifndef INCLUDED_COCOA_GRAPHIC2D_H
#define INCLUDED_COCOA_GRAPHIC2D_H

#include <graphic2D.h>
#include <ApplicationServices/ApplicationServices.h>

class CocoaGraphic2D : public Graphic2D
{
public:
    CocoaGraphic2D(CGContextRef cg_);
    virtual ~CocoaGraphic2D();

    virtual void clear_rect(float x, float y, float w, float h);
    virtual void draw_line(float x0, float y0, float x1, float y1);
private:
    CGContextRef cg;
};

#endif //INCLUDED_WINDOW_H
